//************************************************************************
// author	:	vera												
// date		:	2011/7/21 23:15 
// Load the file Stream
//************************************************************************
#ifndef	Q_FILE_H
#define Q_FILE_H

class CReader
{
public:
	CReader( const char * fileName );
	CReader( const char * pData, unsigned int nSize );
	~CReader(void);

	static void SetReadPath( const char * filePath );
	static const char * GetReadPath();

	bool IsOpen();
	bool IsMemoryFile();

	int	Size() const;
	void * DatePtr() const;
	const char * StringPtr() const;

	void Close();

private:

	const char * m_pData;
	unsigned int m_nSize; 

	bool m_bOpen;
	bool m_bIsMemoryFile;

	static char * m_pReadPath; 
};

class CWriter
{
	public:
		CWriter();
		~CWriter();


	protected:

	private:
};


#endif
